import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageHandler from "@runtime/module/Handler/MessageHandler";
import TooltipComponent from "@runtime/UnityEngineBridge/TooltipComponent";

/**
 * 智能网联车辆 - 毫米波雷达 - 物体信息 - 更新
 */
export default class MillimeterWaveRadarObjectInformationUpdateMessageHandler extends MessageHandler<ClientMessage.MillimeterWaveRadarObjectInformationUpdateMessage> {
    protected async RunAsync(message: ClientMessage.MillimeterWaveRadarObjectInformationUpdateMessage): Promise<void> {
        for (const information of message.Informations) {
            TooltipComponent.Default.Update(information);
        }
    }
}
